package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.ComputerRoom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComputerRoomMapper {
    public List<ComputerRoom> getPage(@Param("computerRoom") ComputerRoom computerRoom,
                                      @Param("pageBegin") Integer pageBegin,
                                      @Param("pageSize") Integer pageSize);

    public Integer count(@Param("computerRoom") ComputerRoom computerRoom);

    public int insert(ComputerRoom computerRoom);

    public int delete(@Param("roomId") Integer roomId);

    public int update(ComputerRoom computerRoom);

    //详情
    public ComputerRoom getId(@Param("roomId") Integer roomId);

    //根据名字查重
    public ComputerRoom getRoomName(@Param("roomName") String roomName);
}
